package tat.domain;

public class RequirementsReportBuilder {

	private Requirement[] reportData;
	private String report;
	
	public void defineReportData(Requirement[] reportData){
		this.reportData = reportData;
	}
	
	public void renderReport(){
		int counter = 0;
		report = "";
		for(Requirement req : reportData){
			counter++;
			report += "R" + counter + "  " + req.value() + " - Source: " + req.origin() + "\n"; 
		}
		report = "Requirements Report\n\n" + report;
	}
	
	public String exportReport(){
		return report;
	}
	
}
